from models import db, BaseModel


class Post(BaseModel):
    """
    岗位模型
    """
    __tablename__ = "sys_post"
    __table_args__ = ({"comment": "岗位"})
    name = db.Column(db.String, name="name", unique=False, nullable=True, comment="岗位名称")
    code = db.Column(db.String, name="code", unique=False, nullable=True, comment="唯一编码")
    sort = db.Column(db.BigInteger, name="sort", unique=False, nullable=True, comment="排序")
    enabled = db.Column(db.Integer, name="enabled", unique=False, nullable=True, comment="是否启用")
    remark = db.Column(db.String, name="remark", unique=False, nullable=True, comment="备注")
